package com.ltx.vizflowservice.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ltx.vizflowservice.dao.ProjectTemplateMapper;
import com.ltx.vizflowservice.domain.entity.ProjectTemplate;
import com.ltx.vizflowservice.service.ProjectTemplateService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 项目模板 服务实现类
 * </p>
 *
 * @author 罗添煦
 * @since 2024-11-15
 */
@Service
public class ProjectTemplateServiceImpl extends ServiceImpl<ProjectTemplateMapper, ProjectTemplate> implements ProjectTemplateService {

    @Override
    public ProjectTemplate getProjectTemplate(Long projectId) {
        LambdaQueryWrapper<ProjectTemplate> eq = new LambdaQueryWrapper<ProjectTemplate>()
                .eq(ProjectTemplate::getProjectId, projectId);
        return baseMapper.selectOne(eq);
    }
}
